package com.pjmike.netty.server.service;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * 心跳服务处理类
 */
@Service
@Slf4j
public class HeartBeatMessageService implements MessageService{
    public String messageDispatcher(String msg){
//        if(msg!=null&&msg.length()>=6){
//            String type = msg.substring(2,6);
//            if(Command.HEARTBEAT_REQUEST_FLAG.equals(type)){
//                log.info("获取到心跳报文，内容：{}",msg);
//                return Command.MESSAGE_START+Command.HEARTBEAT_RESPONSE_FLAG+msg.substring(6,msg.length());
//            }
//        }
        return null;
    }
}
